<?php require_once('Connections/locamedicadmin.php'); ?>

<?php include('userValidation.php'); ?>

<?php include('functions.php'); ?>

<?php

$codigo = $_GET['codigo'];

mysql_select_db($database_locamedicadmin, $locamedicadmin);
$query_Recordset1 = "update csre_commande set state = 1 where codigo = '" . $codigo . "'";
mysql_query($query_Recordset1, $locamedicadmin) or die(mysql_error());


mysql_free_result($Recordset1);

header(sprintf("Location: %s", "commande_list.php"));

?>